package project.DAO;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;

import java.util.Date;

@Mapper
@Service
public interface TouchDAO {
    @Insert("insert into touch(sno,name,time) values (#{sno},#{name},#{time})")
    public void insertTouch(String sno, String name, String time);
    @Delete("delete from touch where sno=#{sno}")
    public void deleteSno(String sno);
    @Update("delete from touch where name=#{name}")
    public void deleteName(String name);
}
